
package org.example.canteen.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;


@Data
@TableName("erp_change_detail")
@Document(indexName = "erp_change_detail")
public class changeDetail {

    @Id
    @Field(type= FieldType.Keyword)
    private Long id;

    @Field(type= FieldType.Text, analyzer = "ik_max_word")
    private String materialId;            //名称

    @Field(type= FieldType.Text, analyzer = "ik_max_word")  //ik_smart智能分词  ik_max_word 最细粒度划分
    private String changeType;  //变动类型

}
